<?php
/**
 * @author Mingming Tang iamalazyrat@gmail.com
 */

class Item_Controller extends Base_Controller {

  public $restful = true;

  public function get_index() {
    $id = Input::get('id', false);
    $img = Img::find($id);
    if (!$img) return Response::error('404');
    return View::make('item.index.main')->with('img', $img);
  }
  
}

